const Menu_Apis = {

    // 获取菜单列表
    getMenus: {
        method: "get",
        url: '/permission/menu'
    },

    // 查询具体菜单详细，jointUrl: "/"+id
    getMenu: {
        method: "get",
        url: '/permission/menu'
    },

    // 查询菜单下拉树结构
    treeSelect: {
        method: "get",
        url: '/permission/menu/treeSelect'
    },

    // 根据角色ID查询菜单下拉树结构，jointUrl: "/"+roleId
    roleMenuTreeSelect: {
        method: "get",
        url: '/permission/menu/roleMenuTreeSelect'
    },


    // 新增菜单配置
    saveMenu: {
        method: "post",
        url: '/permission/menu'
    },

    // 修改菜单配置
    updateMenu: {
        method: "put",
        url: '/permission/menu'
    },

    // 删除菜单配置，jointUrl: "/"+menuId
    deleteMenu: {
        method: "delete",
        url: '/permission/menu'
    },
    // 生成按钮权限
    generateButtonPermission: {
        method: 'post',
        url: '/permission/menu/generate/btnRules'
    }
}

export default Menu_Apis
